package com.ruoyi.system.mapper;

import com.ruoyi.common.core.domain.BaseDao;
import com.ruoyi.system.domain.TestWholeData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

/**
* @author ADMIN
* @description 针对表【t_dtestwholedata】的数据库操作Mapper
* @createDate 2025-06-17 14:36:49
* @Entity com.ruoyi.system.domain.TDtestwholedata
*/
@Mapper
public interface TestwholedataMapper extends BaseDao<TestWholeData> {

    TestWholeData getByTableName(@Param("testWholeData")TestWholeData testWholeData,@Param("testWholeDataTableName") String testWholeDataTableName);

    @Select("selet count(1) from ${testWholeDataTableName} where idcard=#{idcard} and (#{testtime}='' or testtime=#{testtime})")
    int getTestInfoExist(@Param("idcard")String idcard,@Param("testtime") String testtime,@Param("testWholeDataTableName") String testWholeDataTableName);

    int insertByTableName(@Param("testWholeData")TestWholeData testWholeData,@Param("testWholeDataTableName") String testWholeDataTableName);

    int updateByTableName(@Param("testWholeData")TestWholeData testWholeData,@Param("testWholeDataTableName") String testWholeDataTableName);

    public void batchUpdate(Map<String, Object> params);

    public void batchInsert(Map<String, Object> paramMap);
}




